package com.exam.qc.service.impl;


import com.exam.qc.mapper.QualityMapper;
import com.exam.qc.model.Quality;
import com.exam.qc.service.QualityService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = {Exception.class})
public class QualityServiceImpl implements QualityService {

    @Resource
    private QualityMapper qualityMapper;

    @Override
    public Integer addQuality(Quality quality) {
        return qualityMapper.insertQuality(quality);
    }
}
